home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
marionettemadness.swf
/
scripts
/
__Packages
/
com
/
mosesSupposes
/
fuse
/
FuseItem.as
< prev
next >
Wrap
Text File
|
2007-10-01
|
63KB
|
1,594 lines
class com.mosesSupposes.fuse.FuseItem
{
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
function FuseItem(id, o, fuseID)
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
this._nItemID = id;
this._nFuseID = fuseID;
this._initObj = o;
this._aProfiles = [];
this._oElements = {aEvents:[]};
this._oTemps = {};
if(!(o instanceof Array))
{
o = [o];
}
var _loc19_ = _global.com.mosesSupposes.fuse.Fuse;
this._oTemps.outputLevel = _loc19_ == undefined ? _global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL : _loc19_.OUTPUT_LEVEL;
if(o.length == 1)
{
var _loc18_ = o[0];
var _loc12_ = _loc18_.action == undefined ? _loc18_ : _loc18_.action;
if(_loc12_.__buildMode != true && _loc12_.command != undefined)
{
this._oElements.command = _loc12_.command;
this._oElements.scope = _loc12_.scope;
this._oElements.args = _loc12_.args;
this._sImage = " Elements:[" + ("command" + (typeof _loc12_.command != "string" ? ", " : ":\"" + _loc12_.command + "\", "));
if(_loc12_.delay != undefined)
{
this._sImage += "delay, ";
this._oElements.delay = _loc12_.delay;
}
this._sImage = this._sImage.slice(0,-2) + "]";
if(_loc12_.func != undefined && this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return undefined;
}
}
this._oTemps.sImgS = "";
this._oTemps.sImgE = "";
this._oTemps.sImgB = "";
this._oTemps.afl = 0;
this._oTemps.ael = 0;
this._oTemps.twDelayFlag = false;
this._oTemps.nActions = o.length;
this._oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
this._oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
this._oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
this._oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
this._oTemps.bTriggerFound = false;
for(var _loc17_ in o)
{
var _loc3_ = o[_loc17_];
if(_loc3_.label != undefined && typeof _loc3_.label == "string")
{
this._oElements.label = _loc3_.label;
}
var _loc4_ = undefined;
var _loc8_ = Boolean(typeof _loc3_.action == "object");
if(_loc8_ == true)
{
var _loc7_ = !(_loc3_.action instanceof Array) ? [_loc3_.action] : _loc3_.action;
_loc4_ = {delay:_loc3_.delay,target:_loc3_.target,addTarget:_loc3_.addTarget,label:_loc3_.label,trigger:_loc3_.trigger};
for(var _loc15_ in _loc7_)
{
var _loc5_ = this.parseProfile(_loc7_[_loc15_],_loc4_);
if(_loc5_ != undefined)
{
this._aProfiles.unshift(_loc5_);
}
}
}
else
{
_loc7_ = _loc3_;
_loc5_ = this.parseProfile(_loc7_,_loc4_);
if(_loc5_ != undefined)
{
this._aProfiles.unshift(_loc5_);
}
}
}
this._sImage = "";
var _loc16_ = "";
if(this._oTemps.afl > 0)
{
_loc16_ += this._oTemps.afl <= 1 ? "callback, " : this._oTemps.afl + " callbacks, ";
}
if(this._oElements.delay != undefined || this._oTemps.twDelayFlag == true)
{
_loc16_ += "delay, ";
}
if(this._oTemps.bTriggerFound == true)
{
_loc16_ += "trigger, ";
}
if(this._oTemps.ael > 0)
{
_loc16_ += this._oTemps.ael <= 1 ? "event, " : this._oTemps.ael + " events, ";
}
if(_loc16_ != "")
{
this._sImage += " Elements:[" + _loc16_.slice(0,-2) + "]";
}
if(this._oTemps.sImgS != "")
{
this._sImage += " StartProps:[" + this._oTemps.sImgS.slice(0,-2) + "]";
}
if(this._oTemps.sImgE != "")
{
this._sImage += " Props:[" + this._oTemps.sImgE.slice(0,-2) + "]";
}
if(this._oTemps.sImgB != "")
{
this._sImage += " Simple Syntax Props:[" + this._oTemps.sImgB.slice(0,-1) + "]";
}
if(this._sImage.slice(-2) == ", ")
{
this._sImage = this._sImage.slice(0,-2);
}
delete this._oTemps;
}
static function doTween()
{
for(var _loc3_ in arguments)
{
if(typeof arguments[_loc3_] == "object")
{
if(com.mosesSupposes.fuse.FuseItem._aInstances == undefined)
{
com.mosesSupposes.fuse.FuseItem._aInstances = new Array();
}
var _loc2_ = new com.mosesSupposes.fuse.FuseItem(com.mosesSupposes.fuse.FuseItem._aInstances.length,arguments[_loc3_],-1);
return _loc2_.startItem();
}
}
}
function get label()
{
return this._oElements.label;
}
function hasTriggerFired()
{
return this._bTrigger == true;
}
function getInitObj()
{
return this._initObj;
}
function getActiveTargets(targetList)
{
if(this._aTweens.length <= 0)
{
return targetList;
}
var _loc3_ = false;
for(var _loc5_ in this._aTweens)
{
for(var _loc4_ in targetList)
{
if(targetList[_loc4_] == this._aTweens[_loc5_].targ)
{
_loc3_ = true;
break;
}
}
if(_loc3_ == false)
{
targetList.unshift(this._aTweens[_loc5_].targ);
}
}
return targetList;
}
function toString()
{
return String(this._sID() + ":" + this._sImage);
}
function evalDelay(scope)
{
var _loc3_ = this._oElements.delay;
if(_loc3_ instanceof Function)
{
_loc3_ = _loc3_.apply(this._oElements.delayscope == undefined ? scope : this._oElements.delayscope);
}
if(typeof _loc3_ == "string")
{
_loc3_ = this.parseClock(String(_loc3_));
}
if(_global.isNaN(Number(_loc3_)) == true)
{
return 0;
}
return Number(_loc3_);
}
function startItem(targs, scope, duration, easing)
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var _loc11_ = _global.com.mosesSupposes.fuse.Fuse;
var _loc5_ = _loc11_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc11_.OUTPUT_LEVEL;
if(this._oElements.command != null)
{
var _loc12_ = this._oElements.scope || scope;
var _loc10_ = !(this._oElements.command instanceof Function) ? String(this._oElements.command) : String(this._oElements.command.apply(_loc12_));
var _loc6_ = !(this._oElements.args instanceof Function) ? this._oElements.args : this._oElements.args.apply(_loc12_);
var _loc13_ = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(_loc10_,this._aProfiles.length > 0,_loc6_ != null && !(_loc6_ instanceof Array && _loc6_.length == 0),_loc5_,false);
if(_loc13_ == true)
{
this._nPlaying = 1;
if(!(_loc6_ instanceof Array))
{
_loc6_ = _loc6_ != null ? [_loc6_] : [];
}
this.dispatchRequest(String(_loc10_),_loc6_);
}
if(_loc13_ == false || _loc10_ == "setStartProps")
{
this.complete();
}
return null;
}
if(this._aTweens.length > 0)
{
this.stop();
}
com.mosesSupposes.fuse.FuseItem._ZigoEngine.addListener(this);
this._nPlaying = 2;
var _loc4_ = null;
if(this._aProfiles.length > 0)
{
if(com.mosesSupposes.fuse.FuseItem._ZigoEngine == undefined)
{
com.mosesSupposes.fuse.FuseKitCommon.error("112");
}
else
{
_loc4_ = this.doTweens(targs,scope,duration,easing,false,false);
}
}
this._nPlaying = 1;
var _loc3_ = this._oElements.aEvents;
for(var _loc9_ in _loc3_)
{
if(!(_loc4_ == null && this._aTweens.length > 0 && _loc3_[_loc9_].skipLevel == 2))
{
this.fireEvents(_loc3_[_loc9_],scope,_loc5_,targs);
}
}
if(_loc4_ == null && this._aTweens.length <= 0 && this._nPlaying == 1)
{
if(_loc5_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no tweens added - item done. [getTimer()=" + getTimer() + "]");
}
this.complete();
}
return _loc4_;
}
function stop()
{
var _loc2_ = this._nPlaying > -1;
this._nPlaying = -1;
if(_loc2_ == true)
{
this.onStop();
}
com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeListener(this);
}
static function removeInstance(id)
{
com.mosesSupposes.fuse.FuseItem(com.mosesSupposes.fuse.FuseItem._aInstances[id]).destroy();
delete com.mosesSupposes.fuse.FuseItem._aInstances[id];
}
function onStop()
{
this._bStartSet = false;
for(var _loc3_ in this._aTweens)
{
var _loc2_ = this._aTweens[_loc3_];
_loc2_.targ.removeListener(this);
com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeTween(_loc2_.targ,_loc2_.props);
delete this._aTweens[_loc3_];
}
delete this._aTweens;
this._bTrigger = false;
}
function evtSetStart(o)
{
if(this._sImage.indexOf("StartProps:") == -1 || o.curIndex == this._nItemID)
{
return undefined;
}
if(o.all != true)
{
var _loc3_ = false;
for(var _loc4_ in o.filter)
{
if(Number(o.filter[_loc4_]) == this._nItemID || String(o.filter[_loc4_]) == this._oElements.label)
{
_loc3_ = true;
}
}
if(_loc3_ == false)
{
return undefined;
}
}
this._nPlaying = 2;
this.doTweens(o.targs,o.scope,null,null,true,false);
this._nPlaying = -1;
this._bStartSet = true;
}
function pause(resume)
{
if(this._nPlaying == -1)
{
return undefined;
}
this._nPlaying = resume != true ? 0 : 1;
for(var _loc12_ in this._aTweens)
{
var _loc4_ = this._aTweens[_loc12_];
var _loc2_ = _loc4_.targ;
var _loc3_ = _loc4_.props;
if(resume == true)
{
var _loc5_ = [];
var _loc6_ = this._aTweens.length;
for(var _loc8_ in _loc3_)
{
if(com.mosesSupposes.fuse.FuseItem._ZigoEngine.isTweenPaused(_loc2_,_loc3_[_loc8_]) == false)
{
_loc5_.push(_loc3_[_loc8_]);
}
}
if(_loc5_.length > 0)
{
this.onTweenEnd({__zigoID__:_loc4_.targZID,props:_loc5_,isResume:true});
}
if(this._aTweens.length == _loc6_)
{
_loc2_.addListener(this);
com.mosesSupposes.fuse.FuseItem._ZigoEngine.unpauseTween(_loc2_,_loc4_.props);
}
}
else
{
_loc2_.removeListener(this);
com.mosesSupposes.fuse.FuseItem._ZigoEngine.pauseTween(_loc2_,_loc4_.props);
}
}
if(resume == true && this._aTweens.length <= 0)
{
this.complete();
}
else if(resume == true)
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine.addListener(this);
}
else
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeListener(this);
}
}
function fastForward(ignore, targs, scope)
{
if(this._nPlaying == 1)
{
for(var _loc4_ in this._aTweens)
{
var _loc3_ = this._aTweens[_loc4_];
var _loc2_ = _loc3_.targ;
_loc2_.removeListener(this);
com.mosesSupposes.fuse.FuseItem._ZigoEngine.ffTween(_loc2_,_loc3_.props,true);
}
return undefined;
}
if(this._nPlaying == 2)
{
com.mosesSupposes.fuse.FuseKitCommon.error("125",this._nItemID);
}
this._nPlaying = 2;
this.doTweens(targs,scope,null,null,false,true);
stop();
}
function destroy()
{
var _loc3_ = this._nPlaying > -1;
this._nPlaying = -1;
for(var _loc5_ in this._aTweens)
{
var _loc2_ = this._aTweens[_loc5_];
_loc2_.targ.removeListener(this);
if(_loc3_ == true)
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeTween(_loc2_.targ,_loc2_.props);
}
delete this._aTweens[_loc5_];
}
for(var _loc4_ in this)
{
delete this[_loc4_];
}
}
function dispatchRequest(type, args)
{
var _loc4_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID);
if(!(args instanceof Array) && args != null)
{
args = new Array(args);
}
Function(_loc4_[type]).apply(_loc4_,args);
}
function _sID()
{
var _loc3_ = undefined;
if(this._nFuseID == -1)
{
_loc3_ = "-One-off tween ";
}
else
{
_loc3_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID).getHandle();
}
_loc3_ += ">Item #" + String(this._nItemID);
if(this._oElements.label != undefined)
{
_loc3_ += " \"" + this._oElements.label + "\"";
}
return _loc3_;
}
function parseProfile(obj, aap)
{
var _loc40_ = undefined;
var _loc2_ = undefined;
var _loc8_ = undefined;
if(obj.__buildMode == true)
{
if(obj.command != undefined)
{
if(obj.command == "delay")
{
this._oElements.delay = obj.commandargs;
}
else if(obj.command == "trigger")
{
if(this._oTemps.bTriggerFound == false)
{
this._oTemps.bTriggerFound = true;
return {trigger:obj.commandargs,_doTimer:true};
}
if(this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("124",this._sID(),obj.commandargs);
}
}
else
{
this._oElements.command = obj.command;
this._oElements.args = obj.commandargs;
}
}
if(obj.func != undefined)
{
this._oTemps.afl = this._oTemps.afl + 1;
this._oElements.aEvents.unshift({scope:obj.scope,func:obj.func,args:obj.args});
}
if(obj.tweenargs != undefined)
{
this._oTemps.sImgB += obj.tweenargs[1].toString() + ",";
return obj;
}
return null;
}
var _loc4_ = {delay:(aap.delay == undefined ? obj.delay : aap.delay),ease:obj.ease,seconds:obj.seconds,event:obj.event,eventparams:obj.eventparams,skipLevel:(!(typeof obj.skipLevel == "number" && obj.skipLevel >= 0 && obj.skipLevel <= 2) ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.SKIP_LEVEL : obj.skipLevel),roundResults:obj.roundResults,oSP:{},oEP:{},oAFV:{}};
var _loc22_ = aap.trigger == undefined ? obj.trigger : aap.trigger;
if(_loc22_ != undefined)
{
if(this._oTemps.bTriggerFound == false)
{
_loc4_.trigger = _loc22_;
this._oTemps.bTriggerFound = true;
}
else if(this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("124",this._sID(),_loc22_);
}
}
if(_loc4_.delay == undefined)
{
_loc4_.delay = obj.startAt;
}
if(_loc4_.ease == undefined)
{
_loc4_.ease = obj.easing;
}
if(_loc4_.seconds == undefined)
{
_loc4_.seconds = obj.duration == undefined ? obj.time : obj.duration;
}
if(aap.target != undefined)
{
_loc4_.target = !(aap.target instanceof Array) ? [aap.target] : aap.target;
}
else if(obj.target != undefined)
{
_loc4_.target = !(obj.target instanceof Array) ? [obj.target] : obj.target;
}
if(obj.addTarget != undefined)
{
_loc4_.addTarget = !(obj.addTarget instanceof Array) ? [obj.addTarget] : obj.addTarget;
}
if(aap.addTarget != undefined)
{
if(_loc4_.addTarget == undefined)
{
_loc4_.addTarget = !(aap.addTarget instanceof Array) ? [aap.addTarget] : aap.addTarget;
}
else
{
_loc4_.addTarget = !(_loc4_.addTarget instanceof Array) ? new Array(_loc4_.addTarget).concat(aap.addTarget) : _loc4_.addTarget.concat(aap.addTarget);
}
}
var _loc15_ = false;
for(_loc2_ in obj)
{
var _loc9_ = obj[_loc2_];
if(this._oTemps.cbProps.indexOf("|" + _loc2_ + "|") > -1)
{
if(_loc2_ != "skipLevel")
{
_loc4_[_loc2_] = _loc9_;
}
}
else if(this._oTemps.fuseProps.indexOf("|" + _loc2_ + "|") > -1)
{
if(_loc2_ == "command" && this._oTemps.nActions > 1 && this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("109",String(_loc9_),true);
}
}
else
{
if(typeof _loc9_ == "object")
{
var _loc11_ = !(_loc9_ instanceof Array) ? {} : [];
for(_loc8_ in _loc9_)
{
_loc11_[_loc8_] = _loc9_[_loc8_];
}
_loc9_ = _loc11_;
}
var _loc3_ = undefined;
var _loc21_ = undefined;
if(_loc2_.indexOf("start") == 0)
{
_loc2_ = _loc2_.slice(6);
_loc3_ = _loc4_.oSP;
}
else
{
_loc3_ = _loc4_.oEP;
}
if(com.mosesSupposes.fuse.FuseItem.ADD_UNDERSCORES == true && this._oTemps.sUP.indexOf("|_" + _loc2_ + "|") > -1)
{
_loc2_ = "_" + _loc2_;
}
if(this._oTemps.sCT.indexOf("|" + _loc2_ + "|") > -1)
{
var _loc13_ = _loc2_ == "_tintPercent" && _loc3_.colorProp.p == "_tint";
var _loc12_ = _loc2_ == "_tint" && _loc3_.colorProp.p == "_tintPercent";
if(_loc3_.colorProp == undefined || _loc13_ == true || _loc12_ == true)
{
if(_loc13_ == true)
{
_loc3_.colorProp = {p:"_tint",v:{tint:_loc3_.colorProp.v,percent:_loc9_}};
}
else if(_loc12_ == true)
{
_loc3_.colorProp = {p:"_tint",v:{tint:_loc9_,percent:_loc3_.colorProp.v}};
}
else
{
_loc3_.colorProp = {p:_loc2_,v:_loc9_};
}
_loc15_ = true;
}
else if(this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc2_);
}
}
else if(_loc9_ != null)
{
if(_loc3_ == _loc4_.oEP && (obj.controlX != undefined || obj.controlY != undefined) && (_loc2_.indexOf("control") == 0 || _loc2_ == "_x" || _loc2_ == "_y"))
{
if(_loc3_._bezier_ == undefined)
{
_loc3_._bezier_ = {};
}
if(_loc2_.indexOf("control") == 0)
{
_loc3_._bezier_[_loc2_] = _loc9_;
}
else
{
_loc3_._bezier_[_loc2_.charAt(1)] = _loc9_;
}
}
else
{
_loc3_[_loc2_] = _loc9_;
}
_loc15_ = true;
}
}
}
if(_loc15_ == false && (_loc4_.trigger != undefined || (_loc4_.delay != undefined || _loc4_.seconds != undefined) && (_loc4_.startfunc != undefined || _loc4_.updfunc != undefined || _loc4_.func != undefined && this._oTemps.nActions > 1)))
{
if(com.mosesSupposes.fuse.FuseItem._ZigoEngine != undefined)
{
if(_loc4_.func != undefined)
{
this._oTemps.afl = this._oTemps.afl + 1;
}
if(_loc4_.event != undefined)
{
this._oTemps.ael = this._oTemps.ael + 1;
}
_loc4_._doTimer = true;
if(_loc4_.delay != undefined)
{
this._oTemps.twDelayFlag = true;
}
return _loc4_;
}
com.mosesSupposes.fuse.FuseKitCommon.error("116");
}
if(_loc15_ == true)
{
var _loc17_ = _loc4_.oEP.colorProp != undefined;
var _loc7_ = 0;
while(_loc7_ < 2)
{
_loc3_ = _loc7_ != 0 ? _loc4_.oEP : _loc4_.oSP;
var _loc6_ = _loc7_ != 0 ? this._oTemps.sImgE : this._oTemps.sImgS;
var _loc10_ = _loc3_.colorProp.p;
if(_loc10_ != undefined)
{
_loc3_[_loc10_] = _loc3_.colorProp.v;
delete _loc3_.colorProp;
}
if((_loc3_._xscale != undefined || _loc3_._scale != undefined) && (_loc3_._width != undefined || _loc3_._size != undefined))
{
var _loc14_ = _loc3_._xscale == undefined ? "_scale" : "_xscale";
delete _loc3_[_loc14_];
if(this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc14_);
}
}
if((_loc3_._yscale != undefined || _loc3_._scale != undefined) && (_loc3_._height != undefined || _loc3_._size != undefined))
{
_loc14_ = _loc3_._yscale == undefined ? "_scale" : "_yscale";
delete _loc3_[_loc14_];
if(this._oTemps.outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc14_);
}
}
for(_loc2_ in _loc3_)
{
if(_loc6_.indexOf(_loc2_ + ", ") == -1)
{
_loc6_ += _loc2_ + ", ";
}
if(_loc3_ == _loc4_.oSP)
{
if(_loc4_.oEP[_loc2_] == undefined && !(_loc2_ == _loc10_ && _loc17_ == true))
{
_loc4_.oAFV[_loc2_] = true;
_loc4_.oEP[_loc2_] = [];
}
}
}
_loc7_ != 0 ? (this._oTemps.sImgE = _loc6_) : (this._oTemps.sImgS = _loc6_);
_loc7_ = _loc7_ + 1;
}
return _loc4_;
}
if(_loc4_.delay != undefined && this._oTemps.nActions == 1)
{
this._oElements.delay = _loc4_.delay;
this._oElements.delayscope = _loc4_.scope;
}
if(_loc4_.event != undefined)
{
this._oTemps.ael = this._oTemps.ael + 1;
this._oElements.aEvents.unshift({scope:_loc4_.scope,e:_loc4_.event,ep:_loc4_.eventparams,skipLevel:_loc4_.skipLevel});
}
var _loc23_ = this._oElements.aEvents.length;
if(_loc4_.func != undefined)
{
this._oElements.aEvents.push({func:_loc4_.func,scope:_loc4_.scope,args:_loc4_.args,skipLevel:_loc4_.skipLevel});
}
this._oTemps.afl += this._oElements.aEvents.length - _loc23_;
false;
return undefined;
}
function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF)
{
if(this._aTweens == null)
{
this._aTweens = [];
}
var tba = this._oTwBeingAdded = {};
var ZE = com.mosesSupposes.fuse.FuseItem._ZigoEngine;
var _loc33_ = function(target, props, endvals, seconds, ease, delay, callback)
{
if(target.__zigoID__ == null)
{
ZE.initializeTargets(target);
}
tba[target.__zigoID__] = true;
var _loc3_ = ZE.doTween.apply(ZE,arguments);
tba[target.__zigoID__] = false;
return _loc3_ != null ? _loc3_.split(",") : [];
};
var _loc71_ = _global.com.mosesSupposes.fuse.Fuse;
var _loc19_ = _loc71_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc71_.OUTPUT_LEVEL;
var _loc23_ = "";
var _loc64_ = 0;
var _loc7_ = undefined;
var _loc8_ = undefined;
var _loc5_ = undefined;
var _loc72_ = this._bStartSet != true && (setStart == true || this._sImage.indexOf("StartProps:") > -1);
var _loc48_ = 0;
while(_loc48_ < this._aProfiles.length)
{
if(this._nPlaying < 2)
{
return null;
}
var _loc4_ = this._aProfiles[_loc48_];
if(_loc4_.__buildMode == true)
{
var _loc9_ = this._aProfiles[_loc48_].tweenargs;
var _loc63_ = _loc23_;
if(_loc9_[6].cycles === 0 || _loc9_[6].cycles.toUpperCase() == "LOOP")
{
delete _loc9_[6].cycles;
if(_loc19_ > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("117",this._sID());
}
}
var _loc58_ = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(_loc9_[6]);
if(!(_loc9_[0] instanceof Array))
{
_loc9_[0] = [_loc9_[0]];
}
for(_loc7_ in _loc9_[0])
{
if(isFF == true)
{
_loc33_(_loc9_[0][_loc7_],_loc9_[1],_loc9_[2],0,null,0,{skipLevel:0});
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " FF(simple syntax)\ttargets:[" + _loc9_[0][_loc7_] + "]\tprops:[" + _loc9_[1] + "]");
}
}
else
{
var _loc15_ = _loc33_(_loc9_[0][_loc7_],_loc9_[1],_loc9_[2],_loc9_[3],_loc9_[4],_loc9_[5],_loc58_);
if(_loc15_.length > 0)
{
this._aTweens.push({targ:_loc9_[0][_loc7_],props:_loc15_,targZID:_loc9_[0][_loc7_].__zigoID__});
_loc9_[0][_loc7_].addListener(this);
for(_loc8_ in _loc15_)
{
if(_loc23_.indexOf(_loc15_[_loc8_] + ",") == -1)
{
_loc23_ += _loc15_[_loc8_] + ",";
}
}
}
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " TWEEN(simple syntax)\ttargets:[" + _loc9_[0][_loc7_] + "]\tprops tweened:[" + _loc15_.toString() + "]");
}
}
}
if(isFF == false && (_loc63_ == _loc23_ || _loc23_ == ""))
{
_loc64_ = _loc64_ + 1;
}
}
else
{
var _loc21_ = defaultScope;
var _loc14_ = [];
var _loc49_ = _loc4_.target != undefined ? _loc4_.target : targs;
var _loc25_ = [];
var _loc51_ = false;
for(_loc7_ in _loc49_)
{
var _loc6_ = _loc49_[_loc7_];
_loc25_ = _loc25_.concat(!(_loc6_ instanceof Function) ? _loc6_ : _loc6_.apply(_loc21_));
}
for(_loc7_ in _loc4_.addTarget)
{
_loc6_ = _loc4_.addTarget[_loc7_];
_loc25_ = _loc25_.concat(!(_loc6_ instanceof Function) ? _loc6_ : _loc6_.apply(_loc21_));
}
for(_loc7_ in _loc25_)
{
_loc6_ = _loc25_[_loc7_];
if(_loc6_ != null)
{
var _loc37_ = false;
for(_loc8_ in _loc14_)
{
if(_loc14_[_loc8_] == _loc6_)
{
_loc37_ = true;
break;
}
}
if(_loc37_ == false)
{
_loc14_.unshift(_loc6_);
}
}
else
{
_loc51_ = true;
}
}
var _loc53_ = _loc4_._doTimer == true && _loc14_.length == 0 && isFF == false;
if(_loc51_ == true || _loc14_.length == 0 && _loc4_._doTimer != true)
{
_loc64_ = _loc64_ + 1;
}
if(_loc72_ == true)
{
for(_loc7_ in _loc14_)
{
if(this._nPlaying < 2)
{
return null;
}
var _loc34_ = _loc14_[_loc7_];
var _loc32_ = [];
var _loc26_ = [];
if(setStart == true)
{
for(var _loc61_ in _loc4_.oEP)
{
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_loc34_,_loc61_,true);
}
}
for(var _loc62_ in _loc4_.oSP)
{
_loc6_ = _loc4_.oSP[_loc62_];
if(_loc6_ instanceof Function)
{
_loc6_ = _loc6_.apply(_loc21_);
}
if(_loc6_ === true || _loc6_ === false)
{
_loc34_[_loc62_] = _loc6_;
if(_loc4_.oAFV[_loc62_] == true)
{
for(_loc5_ in _loc4_.oEP[_loc62_])
{
if(_loc4_.oEP[_loc62_][_loc5_].targ == _loc34_)
{
_loc4_.oEP[_loc62_].splice(Number(_loc5_),1);
}
}
_loc4_.oEP[_loc62_].push({targ:_loc34_,val:"IGNORE",_isAF:true});
}
}
else
{
if(_loc4_.oAFV[_loc62_] == true && !(_loc62_ == "_colorReset" && _loc6_ == 100) && !(_loc62_ == "_tintPercent" && _loc6_ == 0))
{
var _loc17_ = undefined;
if(_loc62_ == "_tint" || _loc62_ == "_colorTransform")
{
_loc17_ = com.mosesSupposes.fuse.FuseItem._ZigoEngine.getColorTransObj();
}
else if(String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf("|" + _loc62_ + "|") > -1 || _loc62_ == "_fade" && _loc6_ < 50)
{
_loc17_ = 100;
}
else if(String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf("|" + _loc62_ + "|") > -1 || _loc62_ == "_fade")
{
_loc17_ = 0;
}
else
{
var _loc28_ = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_loc34_,_loc62_,true);
if(_loc28_ != null)
{
_loc17_ = _loc28_;
}
else
{
_loc17_ = _global.isNaN(_loc34_[_loc62_]) != false ? 0 : _loc34_[_loc62_];
}
}
for(_loc5_ in _loc4_.oEP[_loc62_])
{
if(_loc4_.oEP[_loc62_][_loc5_].targ == _loc34_)
{
_loc4_.oEP[_loc62_].splice(Number(_loc5_),1);
}
}
_loc4_.oEP[_loc62_].push({targ:_loc34_,val:_loc17_,_isAF:true});
}
if(typeof _loc6_ == "object")
{
var _loc27_ = !(_loc6_ instanceof Array) ? {} : [];
for(_loc5_ in _loc6_)
{
_loc27_[_loc5_] = !(_loc6_[_loc5_] instanceof Function) ? _loc6_[_loc5_] : Function(_loc6_[_loc5_]).apply(_loc21_);
}
_loc6_ = _loc27_;
}
_loc32_.push(_loc62_);
_loc26_.push(_loc6_);
}
}
if(_loc26_.length > 0)
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " " + _loc34_ + " SET STARTS: " + ["[" + _loc32_ + "]","[" + _loc26_ + "]"]);
}
_loc33_(_loc34_,_loc32_,_loc26_,0);
}
}
}
if(setStart != true)
{
var _loc24_ = undefined;
var _loc47_ = undefined;
var _loc31_ = undefined;
var _loc10_ = undefined;
var _loc46_ = undefined;
var _loc18_ = undefined;
var _loc40_ = "";
if(isFF == false)
{
if(_loc4_.scope != undefined)
{
_loc21_ = _loc4_.scope;
}
_loc47_ = !(_loc4_.skipLevel instanceof Function) ? _loc4_.skipLevel : _loc4_.skipLevel.apply(_loc21_);
var _loc68_ = !(_loc4_.extra1 instanceof Function) ? _loc4_.extra1 : _loc4_.extra1.apply(_loc21_);
var _loc67_ = !(_loc4_.extra2 instanceof Function) ? _loc4_.extra2 : _loc4_.extra2.apply(_loc21_);
var _loc69_ = !(_loc4_.roundResults instanceof Function) ? _loc4_.roundResults : _loc4_.roundResults.apply(_loc21_);
_loc31_ = {skipLevel:_loc47_,extra1:_loc68_,extra2:_loc67_,roundResults:_loc69_};
_loc10_ = {skipLevel:_loc47_,extra1:_loc68_,extra2:_loc67_,roundResults:_loc69_};
if(_loc4_.cycles != undefined)
{
var _loc52_ = !(_loc4_.cycles instanceof Function) ? _loc4_.cycles : _loc4_.cycles.apply(_loc21_);
if((Number(_loc52_) == 0 || String(_loc52_).toUpperCase() == "LOOP") && _loc71_ != undefined)
{
delete _loc4_.cycles;
if(_loc19_ > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("117",this._sID());
}
}
else
{
_loc31_.cycles = _loc10_.cycles = _loc52_;
}
}
if(_loc4_.func != undefined || _loc4_.startfunc != undefined || _loc4_.updfunc != undefined)
{
for(_loc7_ in _loc4_)
{
if(_loc7_.indexOf("func") > -1)
{
_loc10_[_loc7_] = _loc4_[_loc7_];
}
else if(_loc7_ == "startscope" || _loc7_ == "updscope" || _loc7_.indexOf("args") > -1)
{
_loc10_[_loc7_] = _loc4_[_loc7_];
}
}
if(_loc21_ != undefined)
{
if(_loc10_.func != undefined && _loc10_.scope == undefined)
{
_loc10_.scope = _loc21_;
}
if(_loc10_.updfunc != undefined && _loc10_.updscope == undefined)
{
_loc10_.updscope = _loc21_;
}
if(_loc10_.startfunc != undefined && _loc10_.startscope == undefined)
{
_loc10_.startscope = _loc21_;
}
}
}
for(_loc8_ in _loc10_)
{
_loc40_ += _loc8_ + ":" + _loc10_[_loc8_] + "|";
}
if(_loc4_.event != undefined)
{
_loc24_ = {scope:_loc4_.scope,e:_loc4_.event,ep:_loc4_.eventparams,skipLevel:_loc47_};
}
_loc46_ = _loc4_.trigger === true;
_loc18_ = undefined;
if(_loc46_ == false && _loc4_.trigger != undefined)
{
_loc18_ = !(_loc4_.trigger instanceof Function) ? _loc4_.trigger : _loc4_.trigger.apply(_loc21_);
if(typeof _loc18_ == "string")
{
_loc18_ = String(_loc18_).charAt(0) != "-" ? this.parseClock(String(_loc18_)) : - this.parseClock(String(_loc18_).slice(1));
}
if(_global.isNaN(_loc18_) == true)
{
_loc18_ = undefined;
}
}
}
var _loc16_ = undefined;
var _loc13_ = undefined;
var _loc20_ = undefined;
var _loc11_ = undefined;
var _loc39_ = false;
var _loc50_ = _loc53_ != false ? [0] : _loc14_;
for(_loc7_ in _loc50_)
{
if(this._nPlaying < 2)
{
return null;
}
if(isFF == false)
{
if(_loc4_.ease != null)
{
_loc20_ = _loc4_.ease;
if(_loc20_ instanceof Function)
{
var _loc41_ = Function(_loc20_);
if(typeof _loc41_(1,1,1,1) != "number")
{
_loc20_ = _loc41_.apply(_loc21_);
}
}
}
if(_loc20_ == null)
{
_loc20_ = defaultEase;
}
if(_loc4_.seconds != null)
{
_loc13_ = !(_loc4_.seconds instanceof Function) ? _loc4_.seconds : _loc4_.seconds.apply(_loc21_);
if(typeof _loc13_ == "string")
{
_loc13_ = this.parseClock(String(_loc13_));
}
}
if(_global.isNaN(_loc13_) == true)
{
_loc13_ = _global.isNaN(defaultSeconds) != false ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION || 0 : defaultSeconds;
}
_loc16_ = !(_loc4_.delay instanceof Function) ? _loc4_.delay : _loc4_.delay.apply(_loc21_);
if(typeof _loc16_ == "string")
{
_loc16_ = this.parseClock(String(_loc16_));
}
if(_loc16_ == null || _global.isNaN(_loc16_) == true)
{
_loc16_ = 0;
}
if(_loc53_ == true)
{
continue;
}
}
_loc34_ = _loc50_[_loc7_];
var _loc22_ = [];
var _loc12_ = [];
var _loc43_ = 0;
for(_loc62_ in _loc4_.oEP)
{
_loc6_ = _loc4_.oEP[_loc62_];
if(_loc6_ instanceof Function)
{
_loc6_ = _loc6_.apply(_loc21_);
}
if(_loc6_ === true || _loc6_ === false)
{
if(_loc11_ == undefined)
{
_loc11_ = {};
}
_loc11_[_loc62_] = _loc6_;
_loc43_ = _loc43_ + 1;
}
else
{
if(typeof _loc6_ == "object")
{
if(_loc6_[0]._isAF == true)
{
for(_loc5_ in _loc6_)
{
if(_loc6_[_loc5_].targ == _loc34_)
{
_loc6_ = _loc6_[_loc5_].val;
break;
}
}
}
else
{
_loc27_ = !(_loc6_ instanceof Array) ? {} : [];
for(_loc5_ in _loc6_)
{
_loc27_[_loc5_] = !(_loc6_[_loc5_] instanceof Function) ? _loc6_[_loc5_] : Function(_loc6_[_loc5_]).apply(_loc21_);
}
_loc6_ = _loc27_;
}
}
if(_loc6_ != "IGNORE")
{
_loc22_.push(_loc62_);
_loc12_.push(_loc6_);
}
}
}
if(isFF == true)
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " FF\ttargets:[" + _loc34_ + "]\tprops:[" + _loc22_.toString() + "]");
}
_loc33_(_loc34_,_loc22_,_loc12_,0,null,0,{skipLevel:0});
}
else if(_loc12_.length > 0)
{
var _loc30_ = {caught:false,onTweenEnd:function(evto)
{
this.caught = true;
}};
_loc34_.addListener(_loc30_);
_loc15_ = _loc33_(_loc34_,_loc22_,_loc12_,_loc13_,_loc20_,_loc16_,_loc10_);
_loc34_.removeListener(_loc30_);
if(_loc15_.length == 0)
{
if(_loc30_.caught == true)
{
_loc10_ = _loc31_;
}
}
else
{
if(_loc15_.length > 0)
{
var _loc35_ = {targ:_loc34_,props:_loc15_,bools:_loc11_,targZID:_loc34_.__zigoID__};
if(_loc39_ == false)
{
_loc10_ = _loc31_;
_loc35_.event = _loc24_;
_loc24_ = _loc11_ = undefined;
_loc35_.trigger = _loc46_;
}
this._aTweens.push(_loc35_);
_loc34_.addListener(this);
_loc39_ = true;
for(_loc8_ in _loc15_)
{
if(_loc23_.indexOf(_loc15_[_loc8_] + ",") == -1)
{
_loc23_ += _loc15_[_loc8_] + ",";
}
}
}
if(_loc19_ == 3)
{
var _loc42_ = _loc22_.toString();
if(_loc15_.length > _loc22_.length)
{
_loc42_ += "\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + _loc15_.toString() + "]";
}
var _loc29_ = "";
for(_loc8_ in _loc12_)
{
_loc29_ = (typeof _loc12_[_loc8_] != "string" ? _loc12_[_loc8_] : "\"" + _loc12_[_loc8_] + "\"") + ", " + _loc29_;
}
com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " TWEEN:\n" + ["\t[getTimer():" + getTimer() + "] ","targ: " + _loc34_,"props: " + _loc42_,"endVals: " + _loc29_,"time: " + (_loc13_ != undefined ? _loc13_ : com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION),"easing: " + (_loc20_ != undefined ? _loc20_ : com.mosesSupposes.fuse.FuseItem._ZigoEngine.EASING),"delay: " + (_loc16_ != undefined ? _loc16_ : 0),"callbacks: " + (_loc40_ != "" ? _loc40_ : "(none)")].join("\n\t"));
}
}
_loc30_ = undefined;
}
}
if(_loc13_ == undefined || _global.isNaN(_loc13_) == true)
{
_loc13_ = 0;
}
var _loc36_ = _loc16_ + _loc13_;
if(_loc18_ != undefined)
{
if(_loc18_ < 0)
{
_loc18_ += _loc36_;
}
if(_loc18_ > 0 && (_loc36_ == 0 || _loc18_ < _loc36_))
{
if(_loc36_ == 0)
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " graft a timed trigger (" + _loc18_ + " sec). [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
}
this.doTimerTween(null,_loc18_,0,true,_loc11_,_loc10_,_loc24_);
_loc39_ = true;
}
else
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " graft a timed trigger (" + _loc18_ + " sec).");
}
this.doTimerTween(null,_loc18_,0,true);
}
}
else if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " timed trigger discarded: out of range. [" + _loc18_ + "/" + _loc36_ + "]");
}
}
if(_loc39_ == false && (_loc10_ != _loc31_ || _loc24_ != undefined || _loc11_ != undefined))
{
if(_loc47_ == 0 && _loc36_ > 0)
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no props tweened - graft a delay (" + _loc36_ + " sec). [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
}
this.doTimerTween(_loc14_,_loc13_,_loc16_,_loc46_,_loc11_,_loc10_,_loc24_);
}
else
{
if(_loc19_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no props tweened, executing nontween items. [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
}
for(_loc7_ in _loc14_)
{
for(_loc8_ in _loc11_)
{
_loc14_[_loc7_][_loc8_] = _loc11_[_loc8_];
}
}
if(_loc47_ < 2)
{
if(_loc10_ != undefined)
{
this.fireEvents(_loc10_,_loc21_,_loc19_,_loc14_);
}
if(_loc24_ != undefined)
{
this.fireEvents(_loc24_,_loc21_,_loc19_);
}
}
}
}
}
}
_loc48_ = _loc48_ + 1;
}
if(_loc64_ > 0 && _loc19_ > 0)
{
if(_loc64_ == this._aProfiles.length && _loc23_ == "")
{
com.mosesSupposes.fuse.FuseKitCommon.error("118",this._sID(),setStart);
}
else
{
com.mosesSupposes.fuse.FuseKitCommon.error("119",this._sID(),_loc64_,_loc72_);
}
}
tba = undefined;
this._oTwBeingAdded = undefined;
return _loc23_ != "" ? _loc23_.slice(0,-1) : null;
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event)
{
var _loc2_ = {__TweenedDelay:0};
com.mosesSupposes.fuse.FuseItem._ZigoEngine.initializeTargets(_loc2_);
this._aTweens.push({targ:_loc2_,props:["__TweenedDelay"],trigger:trigger,bools:booleans,event:event,actualTargs:actualTargets,targZID:_loc2_.__zigoID__});
var _loc3_ = com.mosesSupposes.fuse.FuseItem._ZigoEngine.doTween(_loc2_,"__TweenedDelay",1,duration,null,delay,callback) == null;
if(_loc3_ == true)
{
this.onTweenEnd({target:_loc2_,props:["__TweenedDelay"]});
}
else
{
_loc2_.addListener(this);
}
}
function onTweenEnd(o, doAutoStop)
{
if(this._nPlaying < 1)
{
return undefined;
}
var _loc12_ = _global.com.mosesSupposes.fuse.Fuse;
var _loc8_ = _loc12_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc12_.OUTPUT_LEVEL;
var _loc11_ = o.__zigoID__ === undefined ? o.target.__zigoID__ : o.__zigoID__;
for(var _loc19_ in this._aTweens)
{
var _loc3_ = this._aTweens[_loc19_];
if(_loc3_.targZID == _loc11_)
{
for(var _loc18_ in o.props)
{
var _loc7_ = _loc3_.props;
for(var _loc16_ in _loc7_)
{
var _loc5_ = _loc7_[_loc16_];
if(_loc5_ == o.props[_loc18_])
{
_loc7_.splice(Number(_loc16_),1);
if(doAutoStop == true)
{
var _loc6_ = _loc12_.getInstance(this._nFuseID);
var _loc10_ = this._bTrigger == true && o.during == "add" && _loc6_[_loc6_.currentIndex]._oTwBeingAdded[_loc11_] === true && _loc6_.state == "playing";
if(_loc10_ == false)
{
_loc3_.targ.removeListener(this);
for(_loc19_ in this._aTweens)
{
if(this._aTweens[_loc19_].targZID == _loc11_)
{
for(_loc18_ in o.props)
{
for(_loc16_ in this._aTweens[_loc19_].props)
{
if(this._aTweens[_loc19_].props[_loc16_] == o.props[_loc18_])
{
this._aTweens[_loc19_].props.splice(Number(_loc16_),1);
}
}
}
if(this._aTweens[_loc19_].props.length == 0)
{
this._aTweens.splice(Number(_loc19_),1);
}
}
}
if(_loc8_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " triggering auto-stop due to interruption");
}
if(_loc6_.autoClear == true || _loc6_.autoClear !== false && _loc12_.AUTOCLEAR == true)
{
this.dispatchRequest("destroy");
}
this.dispatchRequest("stop");
return undefined;
}
if(_loc8_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output("note -" + this._sID() + " interrupted one of its own properties \"" + _loc5_ + "\". (Autostop not triggered.)");
}
}
if(this._nPlaying == 2 && _loc5_ != "__TweenedDelay")
{
if(_loc8_ > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("120",this._sID(),_loc5_);
}
}
if(_loc7_.length == 0)
{
if(_loc3_.event != undefined)
{
this.fireEvents(_loc3_.event,null,_loc8_);
}
if(_loc5_ == "__TweenedDelay")
{
com.mosesSupposes.fuse.FuseItem._ZigoEngine.deinitializeTargets(_loc3_.targ);
delete _loc3_.targ;
for(var _loc14_ in _loc3_.bools)
{
for(var _loc13_ in _loc3_.actualTargs)
{
_loc3_.actualTargs[_loc13_][_loc14_] = _loc3_.bools[_loc14_];
}
}
}
else
{
var _loc9_ = false;
for(_loc14_ in _loc3_.bools)
{
_loc3_.targ[_loc14_] = _loc3_.bools[_loc14_];
}
for(var _loc15_ in this._aTweens)
{
if(_loc15_ != _loc19_ && this._aTweens[_loc15_].targ == _loc3_.targ)
{
_loc9_ = true;
}
}
if(_loc9_ == false)
{
_loc3_.targ.removeListener(this);
}
}
if(_loc3_.trigger == true)
{
if(this._bTrigger == false && o.isResume != true && this._aTweens.length > 1)
{
this._bTrigger = true;
if(_loc8_ == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " trigger fired!");
}
var breakChainInt;
breakChainInt = setInterval(function(fi)
{
clearInterval(breakChainInt);
fi.dispatchRequest("advance",[false,false,false]);
}
,1,this);
}
}
this._aTweens.splice(Number(_loc19_),1);
}
}
}
}
}
}
if(this._aTweens.length == 0 && this._nPlaying == 1 && o.isResume != true)
{
this.complete(_loc8_);
}
}
function onTweenInterrupt(o)
{
if(this._nPlaying == -1)
{
return undefined;
}
var _loc4_ = _global.com.mosesSupposes.fuse.Fuse;
var _loc6_ = _loc4_.getInstance(this._nFuseID);
var _loc8_ = _loc6_.autoStop == true || _loc6_.autoStop !== false && _loc4_.AUTOSTOP == true;
var _loc3_ = o.__zigoID__;
var _loc9_ = _loc4_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc4_.OUTPUT_LEVEL;
if(_loc8_ == true || _loc8_ !== false && _loc4_.AUTOSTOP == true)
{
this.onTweenEnd(o,true);
return undefined;
}
if(typeof o.target != "string")
{
this.onTweenEnd(o);
return undefined;
}
for(var _loc5_ in this._aTweens)
{
if(this._aTweens[_loc5_].targZID == _loc3_)
{
this._aTweens.splice(Number(_loc5_),1);
}
}
if(this._aTweens.length == 0 && this._nPlaying == 1)
{
this.complete(_loc9_);
}
}
function complete(outputLevel)
{
var trigger = this._bTrigger;
this.stop();
if(trigger != true)
{
if(outputLevel == 3)
{
com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " complete.");
}
}
var breakChainInt;
breakChainInt = setInterval(function(fi)
{
clearInterval(breakChainInt);
fi.dispatchRequest("advance",[trigger,false,false]);
}
,1,this);
}
function parseClock(str)
{
if(str.indexOf(":") != 2)
{
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION || 0;
}
var _loc4_ = 0;
var _loc3_ = str.split(":");
_loc3_.reverse();
var _loc2_ = undefined;
if(String(_loc3_[0]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[0]))) == false)
{
_loc4_ += _loc2_ / 100;
}
if(String(_loc3_[1]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[1]))) == false && _loc2_ < 60)
{
_loc4_ += _loc2_;
}
if(String(_loc3_[2]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[2]))) == false && _loc2_ < 60)
{
_loc4_ += _loc2_ * 60;
}
if(String(_loc3_[3]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[3]))) == false && _loc2_ < 24)
{
_loc4_ += _loc2_ * 3600;
}
return _loc4_;
}
function fireEvents(o, scope, outputLevel, targets)
{
if(o.scope == undefined)
{
o.scope = scope;
}
if(o.e == undefined)
{
var _loc3_ = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o,targets,outputLevel,false);
if(_loc3_.start.f != null)
{
_loc3_.start.f.apply(_loc3_.start.s,_loc3_.start.a);
}
if(_loc3_.upd.f != null)
{
_loc3_.upd.f.apply(_loc3_.upd.s,_loc3_.upd.a);
}
if(_loc3_.end.f != null)
{
_loc3_.end.f.apply(_loc3_.end.s,_loc3_.end.a);
}
}
else
{
var _loc6_ = !(o.e instanceof Function) ? String(o.e) : String(o.e.apply(scope));
if(_loc6_ != "undefined" && _loc6_.length > 0)
{
if(String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf("|" + _loc6_ + "|") > -1)
{
if(outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("122",_loc6_);
}
}
else
{
var _loc7_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID);
var _loc5_ = !(o.ep instanceof Function) ? o.ep : o.ep.apply(scope);
if(_loc5_ == null || typeof _loc5_ != "object")
{
_loc5_ = {};
}
_loc5_.target = _loc7_;
_loc5_.type = _loc6_;
_loc7_.dispatchEvent.call(_loc7_,_loc5_);
}
}
else if(outputLevel > 0)
{
com.mosesSupposes.fuse.FuseKitCommon.error("123",this._sID());
}
}
}
}